package com.tqyan.model.controller.response;

import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import lombok.Data;

import java.io.Serializable;

/**
 * @description 会话内容响应
 * <p> <功能详细描述> </p>
 *
 * @author 陈晨
 * @date 2023/4/10 16:55
 */
@Data
public class ChatContentResp implements Serializable {
    private static final long serialVersionUID = 1256087418115068825L;

//    @ApiParam("0: GPT; 其他: 用户")
    private String userId;
//    @ApiParam("会话ID")
    private String chatId;
//    @ApiParam("会话内容ID")
    private String chatContentId;
//    @ApiParam("内容, type=1且status=0时, 内容=图片url, 否则内容='绘画中...'")
    private String content;
//    @ApiParam("内容类型, 0: 文本; 1: 图片")
    private Integer type;
//    @ApiParam("内容状态, 0: 未完成; 1: 已完成; 2: 异常. status=0时, 调用获取会话内容接口(/chat/getChatContent)获取最新内容, 直到 status!=0")
    private Integer status;

    private String fileName;
    private String fileUrl;
    private String fileSize;
    private String fileType;
    private JSONArray buttons;

    public ChatContentResp() {}

    public ChatContentResp(long chatId, long chatContentId, String content) {
        this.chatId = chatId + "";
        this.chatContentId = chatContentId + "";
        this.content = content;
    }

}


